﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AnlianCommon.Common.Migrations
{
    public partial class log18 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "IsPregnancyTest",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "PresenceStatus",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ProductionGrade",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ReproductiveState",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ReproductiveStateDays",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SalesGrade",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Stage",
                table: "SheepArchives",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "WeanDate",
                table: "SheepArchives",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "WeanWeight",
                table: "SheepArchives",
                type: "decimal(18,2)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsPregnancyTest",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "PresenceStatus",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "ProductionGrade",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "ReproductiveState",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "ReproductiveStateDays",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "SalesGrade",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "Stage",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "WeanDate",
                table: "SheepArchives");

            migrationBuilder.DropColumn(
                name: "WeanWeight",
                table: "SheepArchives");
        }
    }
}
